home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / profile < prev    next >
Text File  |  2008-10-29  |  497b  |  29 lines

  1. # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
  2. # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
  3.  
  4. if [ -d /etc/profile.d ]; then
  5.   for i in /etc/profile.d/*.sh; do
  6.     if [ -r $i ]; then
  7.       . $i
  8.     fi
  9.   done
  10.   unset i
  11. fi
  12.  
  13. if [ "$PS1" ]; then
  14.   if [ "$BASH" ]; then
  15.     PS1='\u@\h:\w\$ '
  16.     if [ -f /etc/bash.bashrc ]; then
  17.     . /etc/bash.bashrc
  18.     fi
  19.   else
  20.     if [ "`id -u`" -eq 0 ]; then
  21.       PS1='# '
  22.     else
  23.       PS1='$ '
  24.     fi
  25.   fi
  26. fi
  27.  
  28. umask 022
  29.